package com.example.sls.service.impl.field;

import com.example.sls.pojo.field.FieldUsageStatistics;
import com.example.sls.dao.field.FieldUsageStatisticsDao;
import com.example.sls.service.intserfaces.field.FieldUsageStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 场地使用统计表(FieldUsageStatistics)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:08
 */
@Service
public class FieldUsageStatisticsServiceImpl implements FieldUsageStatisticsService {
  @Autowired
  FieldUsageStatisticsDao fieldUsageStatisticsDao;

  @Override
  public FieldUsageStatistics queryById(Integer id) {
    return fieldUsageStatisticsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return fieldUsageStatisticsDao.deleteById(id);
  }

  @Override
  public int update(FieldUsageStatistics fieldUsageStatistics) {
    return fieldUsageStatisticsDao.update(fieldUsageStatistics);
  }

  @Override
  public int insert(FieldUsageStatistics fieldUsageStatistics) {
    return fieldUsageStatisticsDao.insert(fieldUsageStatistics);
  }

  @Override
  public long count() {
    return fieldUsageStatisticsDao.count();
  }

  @Override
  public List<FieldUsageStatistics> queryAllByLimit(FieldUsageStatistics fieldUsageStatistics, Integer pageSize, Integer offset) {
    return fieldUsageStatisticsDao.queryAllByLimit(fieldUsageStatistics, pageSize, offset);
  }
}
